<?php

    namespace yaliSDK\message;

    use yaliSDK\common\Entity;

    class BaseMessage extends Entity implements IMessage {
        protected $code;
        protected $msg;

        public function __construct(int $id, string $msg = '') {
            $this->code = $id;
            $this->msg = $msg;
        }

        public function getCode(): int {
            return $this->code;
        }

        public function getMsg(): string {
            return $this->msg;
        }
    }